24. math instructions usage
你好。
Hello.
在本教程中,我们将学习如何为先生提供介绍的使用说明。
In this tutorial, we will learn how can the use met instructions introduced available for Mr.
主教?
Bishop?
我们有四次见面指导。
We have four met instruction.
首先,我不是在谈论三角学。
Firstly, I'm not talking about trigonometry.
只是我们可以知道的加法、减法、除法和乘法,我们可以做一个应用程序或者也许下一个教程。
Just addition, subtraction, division and multiplication that we can know and that we can do an application or maybe next tutorials.
我们将为其他高年级学生做一个额外的,呃,视频讲座,或者脆性或其他计算。
We will do an extra, uh, video lectures for the and other seniors or crunchiness or in other calculations.
但目前,我们需要适当的指导。
But for the moment, we need for met instruction.
让我们在这里插入并始终打开。
And let's insert here and always on.
我们从 48 条指令中的 8 条开始,例如 5 8 x 8,并将其写入 D0。
And let's start with the eight instruction eight of 48, for example, five eight by eight and write it to D0.
好的?
OK?
我将插入一行。
And I will insert a line.
一次又一次。
Again and again.
好的,棒极了。
OK, very good.
这当然是一条垂直线。
And this is certainly a vertical line.
还有一个。
And one more.
还有一个。
And one more.
好吧,让我们继续进行减法,例如,将其减去九,然后将其分解为一。
And, OK, let's continue with the subtraction, for example, and would subtract it by, for example, nine it will be broken into one.
让我们继续进行乘法运算。
And let's continue with the multiplication.
例如,10 乘以三。
For example, 10 multiply by three.
并将结果写入两者中。
And the result is written into the two.
以“最后一件事”除法为例,100 除以 5。
And The Last Thing division, for example, 100 divided by five.
并将结果写入三中。
And the result is written into the three.
还有一件事我们已经使用了正义常数。
And also one more thing we already work with the just constant.
另外,您可以像在五到九处一样使用数据寄存器,就像确定一样。
Also, you can work with the data register like again at the five to the nine, like the OK.
这转换了。
And this converted.
让我们将其发送给 LC,我们将看到主要结果,我将执行正确的政策,我们需要再等一会儿。
And let's send it to the LC and we will see the results the main and I will execute right the policy and we need to wait a little bit more.
好吧,现在我会说是的。
OK, now I will say yes.
并完成了这个壁橱,让我们监视它,因为它总是打开的,突然我们就会看到结果,好吗?
And completed this closet, and let's monitor it because of this is always on, suddenly we will see the results, OK?
此时,5 与 8 相乘,结果为 13。
And at this point, the five and it by eight and the result is 13.
还行吧。
This is OK.
这是跑步,其他东西可以乘以,对不起,减去九。
This is running and other things can multiply by, I'm sorry, subtracted by nine.
结果是一。
And the result is one.
这也可以。
This is also OK.
这里我们有一个问题,因为为什么乘法可以乘以三。
And here we have a problem because of why multiplication can multiply by three.
而结果就是变成了二。
And the result is into the two is.
一百万、三十一万七百五十。
One million, three hundred and ten thousand seven hundred and fifty.
如果您今天需要看一次。
If you need to take a look once today's.
但是除法也可以,一百除以五,结果是20。
But the division is also OK and one hundred divided by five and the result is 20.
这是正确的,此时我们可以额外做一个呃。
This is correct, and at this point, we can do an extra uh.
例如,五将是五。
Example, like the five is going to be five.
我们让它说五编辑零。
Let's make it said five edit by zero.
结果是五。
The result is five.
咱们换七吧。
Let's change the seven.
我会写在这里。
And I will write here.
10.
10.
好的。
OK.
5 英寸 x 10 英寸。
Five inches by 10.
结果是15。
The result is 15.
好的。
OK.
只是我需要去。
Just I need to go to.
这里,我需要看一下为什么乘法不转,就在这里,我们需要找到它才行。
Here, and I need to take a look once why multiplication is not turning, it is here, we need to find it OK.
首先,我将前往设备监控设备测试区域。
First of all, I will go to device monitor device test area.
我会只写一个零吗?
And did you I will write just a zero.
我会说的。
I will say it.
但结果并没有改变。
But the result is not changing.
让我们再做一个例子,让我们看看我们的修改有什么问题,因此,我将进入赖特模式,我将释放另一个数据寄存器,例如 20 和乘法 10 乘以 3,结果是 20 。
Let's do another one example about here, and let's see what is wrong with our modification because of that, I will go to Wright mode and I will release another data register like the 20 and multiplication 10 multiplied by three, and the result is the 20.
好的,我转换后再次发送到中华人民共和国。
OK, let me send it to the PRC once more after I converted.
我们需要再等一会儿,我们就会看到数据出了什么问题,因为它可能会影响顺序数据寄存器,但这并不重要,因为我们只使用 16 位指令,而不是 32 位指令。
We need to wait a little bit more and we will see what's wrong with the data because of maybe it is affected the sequential data register, but doesn't matter because we are working with just 16 bit instructions, not 32bit.
所以我们会看到。
So we will see.
好吧,现在我会说是的。
OK, now I will say yes.
是同谋,我将关闭它,然后进入监视模式,我们将在星期四看到结果。
Is complicit, and I will close it, and I will go to monitor mode, and we will see the result is Thursday.
好的。
OK.
一切都很好。
Everything is good.
为什么?
Why?
嗯,这个影响了结果,稍后会解释。
Um, this has affected the result and I will explain it later.
但。
But.
我现在就可以解释了,好吧,不晚了,因为我们正在使用 16 位数据寄存器,我们必须输入寄存器区域、16 位用法或 32 位用法。
I can explain it now, OK, not later, because we are working with 16 bit data register and we have to type register area, 16 bit usage or 32 bit usage.
我们现在将 16 位与 16 位相乘,结果写入 20。
We are multiplying now 16 bit and 16 bit and the result is written into the 20.
所以这不是该指令现在使用的 20 和 21。
So this is not this instruction is using now the 20 and the 21.
如果我们看,如果我们看今天 21,现在将为零。
If we look, if we look today 21, it will be zero now.
不过是以前用过的。
But it is using previously.
我们在这里只使用了 0 d 1。
We just used here the zero d one.
这是对的。
This is correct.
加法和减法使用16位。
Addition and subtraction is using 16 bit.
所以这是 16 位的。
So this is 16 bit.
您想要 16 位区域吗?
Do you want a 16 bit area?
一切都正确,但乘法使用 32 位结果。
Everything is correct, but multiplication is using 32 bit result.
它正在为您自己生成 32 位。
It is producing 32 bit for yourself.
因此,D2 和 D3 由乘法指令使用。
Because of that, D2 and D3 is used by multiplication instructions.
那么我们如何证明呢?
So how can we prove it?
我将在这里再次写下两个,但我将其更改为仅四个。
I will write here again the two, but I will change it to just the four.
在这里,我将只使用 D,例如,六和七。
And here I will just work with the D, for example, six and seven.
好的,让我再次转换,然后发送它,我们需要再等一下,您将看到确切的结果,您将了解它如何生成 32 位结果,然后您就会明白,我们将完成本教程。
And OK, just lets me again convert, then send it and we need to wait a little bit more and you will see the exact results and you will understand it how it is producing 32bit result, then you will understand and we will finish this tutorial.
好的?
Okay?
让我看看这篇文章写完了,然后我们就完成这个教程。
Let me see the finished this writing, and then we will finish this tutorial.
好的。
OK.
快完成了,我会说是的。
It's almost finished, and I will say yes.
完成并关闭它。
Completed and close it.
非常好,监控模式现在处于活动状态,您将看到,结果返回 D2 很晚,除法为 20。
Very good, and the monitoring mode is active now than you will see, the result is returning to D2 is tardy and division is 20.
一切都是正确的。
Everything is correct.
所以我们从现在开始明白,乘法产生 32 位。
So we understand from now on, multiplication is producing 32bit.
确切地说,我们解决了结果是如何影响的,与我们突然看到的不同或不同。
And exactly we solved the result how it is affecting than we saw suddenly and different or.
而且没有意义,也没有详细说明,因为为什么除法完成后得到290的结果,做起来也很影响。
And meaningless and no into detail because of why after the division is finished with the 290 result, it was affecting to do it too.
但现在的树是23,是乘法使用的。
But the tree is now the 23 is used by the multiplication.
就这样。
That's all.
请务必小心。
Please be careful about it.
请据此进行计算和数据注册用途。
And please do your calculations and the data registry usages according to that.
好的。
OK.
这对于本教程来说非常重要。
This is really critical for this tutorial.
我到这里就结束了。
I'm finished here.
在下一个教程中再见?
See you in the next tutorial?